﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vaffanculo.Data.Implements;
using Vaffanculo.Model.Entities;
using Vaffanculo.Data.Interfaces;
using Vaffanculo.Business.Interfaces;

namespace Vaffanculo.Business.Managers
{
    /// <summary>
    /// Implementation Project Repository
    /// </summary>
    public class ProjectManager : Repository<Project>, IProjectManager
    {
        public ProjectManager(IUnitOfWork unitOfWork): base(unitOfWork)
        {
        }

        /// <summary>
        /// Get all projects
        /// </summary>
        /// <returns>IList<Project></returns>
        public IList<Project> GetAllProjects()
        {
            return this.GetAll();
        }

        /// <summary>
        /// Add Project to database
        /// </summary>
        /// <param name="project">Project Entity</param>
        public void AddProject(Project project)
        {
            this.Add(project);
        }
    }
}
